// vue.config.js 配置说明
// 这里只列一部分，具体配置惨考文档啊


/**
 * rem适配
 * yarn add lib-flexible -S
yarn add postcss-pxtorem -D
 */


module.exports = {
    publicPath: process.env.NODE_ENV === 'production' ? '/ac' : '/',
    outputDir: 'dist',
    lintOnSave: false,
    productionSourceMap: process.env.NODE_ENV === 'production',
    devServer: {
        proxy: {
            // http://dyundyun.com:8080/admin/activity/front/createActivityQCode
            '/admin': {
                target: ' http://www.dyundyun.com',
                ws: true,
                changeOrigin: true
            },
            '/wx': {
                target: ' http://www.dyundyun.com',
                ws: true,
                changeOrigin: true
            }
        }
    },
    css: {
        loaderOptions: {
            scss: {
                // prependData: `@import "@/style/reset.scss;"`
                // prependData: `@import "@/assets/styles/variable.scss";`
            }
        }
    },

};